package com.lottery.im.module.setting.ui;

import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import com.lottery.im.R;
import com.lottery.im.base.BaseSwipeFragment;
import com.lottery.im.module.setting.presenter.ChangePwdPresenter;
import com.lottery.im.module.setting.view.ChangePwdView;

/*
 *  修改登录密码
 * */
public class ChangeVerPwdFragment extends BaseSwipeFragment<ChangePwdPresenter> implements
    ChangePwdView {

  @BindView(R.id.tv_title) TextView mTvTitle;
  @BindView(R.id.et_pwd_old) EditText mEtPwdOld;
  @BindView(R.id.et_pwd1) EditText mEtPwd1;
  @BindView(R.id.et_pwd2) EditText mEtPwd2;

  @Override protected int getLayoutResId() {
    return R.layout.fragment_change_ver_pwd;
  }

  @Override protected void initPresenter() {
    presenter = new ChangePwdPresenter(getActivity(), this, this);
    presenter.init();
  }

  @Override public void initView() {
    mTvTitle.setText(R.string.change_pwd);
  }

  @OnClick({ R.id.iv_back, R.id.btn_save }) public void onViewClicked(View view) {
    switch (view.getId()) {
      case R.id.iv_back:
        popBackStack();
        break;
      case R.id.btn_save:
        break;
    }
  }

  @Override public void updatePasswordSuc() {

  }
}
